import React from 'react'


function Listitem({item}) {
  return (
    <div>
        {
           item && <dl>
        <dt><img src={item.img} alt="" /></dt>
        <dd>
            <div>{item.title}</div>  
                {/* 判断他的状态添加颜色和显示隐藏 */}
            <div className="slh">{item.word}</div>
            <div>{item.sandi && <span style={{color:"green"}}>3D电影</span>}---{item.xin && <span style={{color:"orange"}}>新出电影</span>}</div>
            <div>{item.yushou && <span style={{color:"red"}}>购票</span>}{!item.yushou && <span style={{color:"blue"}}>预售</span>}</div>
        </dd>
      </dl>
        }
      
    </div>
  )
}

export default Listitem
